package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Sign;
import com.example.entity.StudentSign;

import java.text.ParseException;
import java.util.HashMap;

public interface SignService extends IService<Sign> {
    //接收教师定义的签到数据并返回id
    HashMap<String,Object> generateQRCode(Sign sign);

    //学生签到
    HashMap<String,Object> studentSignIn(StudentSign student, String signId) throws ParseException;

    //依据班级码获取最新的签到记录
    Sign getNewSignStatus(String classCode);

    Sign getSignById(String sign);
}
